home *** CD-ROM | disk | FTP | other *** search
/ .net 2002 March / DotNetMagazine-Issue107-Coverdisc-NET107-02-03-PCMac.bin / pc / PC Software / free_browsing / DavesQckSearchDbar3-14 / dqsd.exe / searches / isc.xml < prev    next >
Text File  |  2002-08-30  |  2KB  |  49 lines

  1. <search function="isc">
  2.   <name>InfoSpace.ca Category Search</name>
  3.   <description>
  4.     Search business categories in Canada.<br/>
  5.     <div class="helpboxDescLabels">Example:</div>
  6.     <table class="helpboxDescTable">
  7.       <tr><td>isc tailors (Halifax, NS)</td></tr>
  8.     </table>
  9.   </description>
  10.   <category>People and Places</category>
  11.   <link>http://www.infospace.com/canada/redirs_all.htm?pgtarg=ylwi</link>
  12.   <contributor>Sarah Sweeney</contributor>
  13.   <email>sarah@designshift.com</email>
  14.   <form name="infospacecform"
  15.         action="http://ypng.infospace.com/canada/ypv3ca/redir.htm"
  16.         method="get">
  17.     <input type="hidden" name="fromform" value="qsearch" />    
  18.     <input type="hidden" name="qhqn" />
  19.     <input type="hidden" name="wqhqn" />
  20.     <input type="hidden" name="qc" />
  21.     <input type="hidden" name="QS" />
  22.   </form>
  23.   <script><![CDATA[
  24.     function isc(q)
  25.     {
  26.       if( nullArgs("isc",q) )
  27.         return false;
  28.  
  29.       res = q.match(/(\w[^\(]*\w)(\s*\((([^,]+),?\s*)?(\w\w)\))?/);
  30.       if (!res)
  31.         openSearchWindow("http://www.infospace.com/canada/redirs_all.htm?pgtarg=ylwi&");
  32.       else
  33.       {
  34.         document.infospacebform.wqhqn.value="1";
  35.         document.infospacebform.qhqn.value=(res[1] ? res[1] : "");
  36.         document.infospacebform.qc.value=(res[4] ? res[4] : "");
  37.         document.infospacebform.QS.value=(res[5] ? res[5].toUpperCase() : "");
  38.         submitForm(infospacebform);
  39.       }
  40.     }
  41.   ]]></script>
  42.  
  43.   <copyright>
  44.     Copyright (c) 2002 David Bau
  45.     Distributed under the terms of the
  46.     GNU Public License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
  47.   </copyright>
  48. </search>
  49.